package com.wye.service;

import com.github.pagehelper.PageInfo;
import com.wye.goods.pojo.Category;

import java.util.List;

public interface CategoryService {

        List<Category> findAll();

        Category findById(Integer id);

        int insert(Category category);

        void update(Category category);

        void delete(Integer id);

        List<Category> findList(Category category);

        PageInfo<Category> findPage(Integer page, Integer size);

        PageInfo<Category> findPage(Integer page, Integer size, Category category);

        List<Category> findByParentId(Integer pid);

        }
